package org.erp.spu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.erp.spu.entity.SpuTemplateRelease;
import org.erp.spu.entity.dto.SpuTemplateReleaseDto;
import org.erp.spu.entity.vo.SpuTemplateReleaseVo;

import java.util.List;

public interface SpuTemplateReleaseService extends IService<SpuTemplateRelease> {

    /**
     * 通过模版id查询发布信息
     * @param templateId
     * @return
     */
    SpuTemplateReleaseVo getByTemplateId(Long templateId);

    /**
     * 编辑模板发布信息
     * @param spuTemplateReleaseDto
     * @return
     */
    boolean editSpuTemplateRelease(SpuTemplateReleaseDto spuTemplateReleaseDto);
    /**
     * 通过型号id查询发布信息
     * @param modelId
     * @return
     */
    SpuTemplateReleaseVo getByModelId(Long modelId);
}
